{% extends "layout.html" %}
{% block content %}
    {% if type == 'error' %}
        <h1>Error</h1>
        <p>Unfortunately an error occured. Please try again <a href="{{ url_for('home') }}">here</a>.</p>
    {% else %}
        <h1>Work in progress</h1>
        <p><b>Please do not refresh or leave this page!</b></p>
        <p>Matching is in progress. Go grab a coffee, this might take up to two hours.</p>
        <div class="sk-cube-grid">
            <div class="sk-cube sk-cube1"></div>
            <div class="sk-cube sk-cube2"></div>
            <div class="sk-cube sk-cube3"></div>
            <div class="sk-cube sk-cube4"></div>
            <div class="sk-cube sk-cube5"></div>
            <div class="sk-cube sk-cube6"></div>
            <div class="sk-cube sk-cube7"></div>
            <div class="sk-cube sk-cube8"></div>
            <div class="sk-cube sk-cube9"></div>
        </div>
        <label class="label" id="type" style="display: none">{{type}}</label>
        <label class="label" id="name" style="display: none">{{name}}</label>
        <script type="text/javascript" src="{{ url_for('static', filename='waiting.js') }}"></script>
    {% endif %}
{% endblock content %}
